package cn.jbolt.ec.order;

import cn.jbolt.base.JBoltBaseService;
import cn.jbolt.common.model.BecRetailerOrderCommodity;
import com.jfinal.kit.Kv;

import java.util.List;

public class OrderCommodityService extends JBoltBaseService<BecRetailerOrderCommodity> {
    BecRetailerOrderCommodity dao = new BecRetailerOrderCommodity().dao();
    @Override
    protected BecRetailerOrderCommodity dao() {
        return dao;
    }

    public List<BecRetailerOrderCommodity> get_order_commodity(Integer order_id){
        Kv cond=Kv.by("order_id",order_id);
        return getCommonList("amount,commodity_name,option_title",cond);
    }

}
